<?php
/**
 * Created by PhpStorm.
 * User: alinejun
 * Date: 2019/1/7
 * Time: 21:49
 */

namespace app\common\model;
class Address extends ModelBase{
    public function search($where = [], $field = true, $order = '', $paginate = 0)
    {
        $list = $this->getList($where, $field, $order, $paginate);
        return $list;
    }


    public function getAddressById($where=[])
    {

        $list = $this->getInfo($where);
        return $list->toArray();
    }

    public function addData($data)
    {
       $res = $this->insert($data);
       return $res;
    }
}